package com.example.lte.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * https://www.jianshu.com/p/55b32fdb928c
 * @ConditionalOnProperty 必须与 @ConfigurationProperties 搭配使用
 * @author lzh
 * @date 2020/11/2 - 18:29
 */
@Data
@Configuration
// 启用配置自动注入功能
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "local-system.linux")
public class LinuxEnvironmentConfig {

    private String picUploadDir;
    private String fileUploadDir;

}
